package com.ruoyi.manage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manage.mapper.MusicMembersMapper;
import com.ruoyi.manage.domain.MusicMembers;
import com.ruoyi.manage.service.IMusicMembersService;

/**
 * 会员信息Service业务层处理
 * 
 * @author xiaoshier
 * @date 2024-07-26
 */
@Service
public class MusicMembersServiceImpl implements IMusicMembersService 
{
    @Autowired
    private MusicMembersMapper musicMembersMapper;

    /**
     * 查询会员信息
     * 
     * @param musicMembersId 会员信息主键
     * @return 会员信息
     */
    @Override
    public MusicMembers selectMusicMembersByMusicMembersId(Long musicMembersId)
    {
        return musicMembersMapper.selectMusicMembersByMusicMembersId(musicMembersId);
    }

    /**
     * 查询会员信息列表
     * 
     * @param musicMembers 会员信息
     * @return 会员信息
     */
    @Override
    public List<MusicMembers> selectMusicMembersList(MusicMembers musicMembers)
    {
        return musicMembersMapper.selectMusicMembersList(musicMembers);
    }

    /**
     * 新增会员信息
     * 
     * @param musicMembers 会员信息
     * @return 结果
     */
    @Override
    public int insertMusicMembers(MusicMembers musicMembers)
    {
        return musicMembersMapper.insertMusicMembers(musicMembers);
    }

    /**
     * 修改会员信息
     * 
     * @param musicMembers 会员信息
     * @return 结果
     */
    @Override
    public int updateMusicMembers(MusicMembers musicMembers)
    {
        return musicMembersMapper.updateMusicMembers(musicMembers);
    }

    /**
     * 批量删除会员信息
     * 
     * @param musicMembersIds 需要删除的会员信息主键
     * @return 结果
     */
    @Override
    public int deleteMusicMembersByMusicMembersIds(Long[] musicMembersIds)
    {
        return musicMembersMapper.deleteMusicMembersByMusicMembersIds(musicMembersIds);
    }

    /**
     * 删除会员信息信息
     * 
     * @param musicMembersId 会员信息主键
     * @return 结果
     */
    @Override
    public int deleteMusicMembersByMusicMembersId(Long musicMembersId)
    {
        return musicMembersMapper.deleteMusicMembersByMusicMembersId(musicMembersId);
    }
}
